-- cmd_offline_instance
-- Create by panyl
-- 设置离线挂机副本

function Operation.cmd_offline_instance(index)
    index = index or 1
    
    -- 已通关的副本
    local finishedInstance = ME.user.dbase:query("finishedInstance", {})
    
    -- 超出范围了
    if not finishedInstance[index] then
        return false
    end
    
    Communicate.send("CMD_OFFLINE_INSTANCE", { ["index"]=index, });
    
    return true
end
